var util = require('../../../utils/util.js');
var api = require('../../../config/api.js');
var user = require('../../../services/user.js');
var app = getApp();

Page({
  data: {
    allCount:0,
    brokerageList:[]
  },
  onLoad:function (options){
    let that = this;
    util.request(api.TransactionRecordRebateList).then(function (res){
      if (res.errno === 0){
        that.setData({
          brokerageList: res.data.page.data,
          allCount: res.data.commission
        });
      }else{
        util.showErrorToast(res.errmsg);
      }
    });
  },
  onReady: function () {

  },
  onShow: function () {

  },
  onHide: function () {

  }
})